package com.cartrentalsystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cartrentalsystem.domain.po.Rental;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cartrentalsystem.domain.vo.RentalVo;
import com.cartrentalsystem.domain.vo.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LHD
 * @since 2025-06-15
 */
public interface IRentalService extends IService<Rental> {

    Result<Page<RentalVo>> list(Integer page, Integer size, String customerName, String plateNumber, Integer status);

    Result<String> updateRental(RentalVo rentalVo);

    Result<String> deleteRental(Integer id);

    Result<String> updateRentalStatus(Integer id, Integer status);

    Result<String> addRental(RentalVo rentalVo);

    Integer getRentalIdByCarId(Integer carId);

    List<RentalVo> getRentalByCustomerId(Integer customerId);
}
